package com.ruoyi.xyq.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.xyq.mapper.MingxiMapper;
import com.ruoyi.xyq.domain.Mingxi;
import com.ruoyi.xyq.service.IMingxiService;

/**
 * 明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-13
 */
@Service
public class MingxiServiceImpl implements IMingxiService 
{
    @Autowired
    private MingxiMapper mingxiMapper;

    /**
     * 查询明细
     * 
     * @param id 明细主键
     * @return 明细
     */
    @Override
    public Mingxi selectMingxiById(Long id)
    {
        return mingxiMapper.selectMingxiById(id);
    }

    /**
     * 查询明细列表
     * 
     * @param mingxi 明细
     * @return 明细
     */
    @Override
    public List<Mingxi> selectMingxiList(Mingxi mingxi)
    {
        return mingxiMapper.selectMingxiList(mingxi);
    }

    /**
     * 新增明细
     * 
     * @param mingxi 明细
     * @return 结果
     */
    @Override
    public int insertMingxi(Mingxi mingxi)
    {
        return mingxiMapper.insertMingxi(mingxi);
    }

    /**
     * 修改明细
     * 
     * @param mingxi 明细
     * @return 结果
     */
    @Override
    public int updateMingxi(Mingxi mingxi)
    {
        return mingxiMapper.updateMingxi(mingxi);
    }

    /**
     * 批量删除明细
     * 
     * @param ids 需要删除的明细主键
     * @return 结果
     */
    @Override
    public int deleteMingxiByIds(Long[] ids)
    {
        return mingxiMapper.deleteMingxiByIds(ids);
    }

    /**
     * 删除明细信息
     * 
     * @param id 明细主键
     * @return 结果
     */
    @Override
    public int deleteMingxiById(Long id)
    {
        return mingxiMapper.deleteMingxiById(id);
    }
}
